package com.lingkang.xcoa.data.dto;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author linke
 * @date 2020/8/22 23:12
 * @description
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ResponsePageResult<T> extends ResponseResult {

  private Integer page;
  private Integer size;
  private long count;

  public ResponsePageResult() {
  }

  public ResponsePageResult(Integer code, Integer page, Integer size, long count, T dataPage) {
    super.setCode(code);
    this.page = page;
    this.size = size;
    this.count = count;
    super.setData(dataPage);
  }

  public ResponsePageResult(Integer code, String message, Integer page, Integer size, long count,
      T dataPage) {
    super.setCode(code);
    super.setMessage(message);
    this.page = page;
    this.size = size;
    this.count = count;
    super.setData(dataPage);
  }
}
